#ifndef CLIENTWINDOW_H
#define CLIENTWINDOW_H

#include <QMainWindow>
#include <QtNetwork>

namespace Ui {
class ClientWindow;
}

class ClientWindow : public QMainWindow
{
    Q_OBJECT
    
public:
    explicit ClientWindow(QWidget *parent = 0);
    ~ClientWindow();
    
private slots:
    void buttonConnexion_clicked();
    void buttonSend_cliked();
    void messsage_enter_pressed();
    void dataReceived();
    void clientConnect();
    void clientDisconnect();
    void errorSocket(QAbstractSocket::SocketError error);

private:
    Ui::ClientWindow *ui;

    QTcpSocket *socket;
    quint16 messageSize;
};

#endif // CLIENTWINDOW_H
